<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">   
    
<!--    <script type="text/javascript" src="other_lib.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
  $.noConflict();
  // Code that uses other library's $ can follow here.
</script>-->
    
    <style type="text/css">
        
        .rotulos{
                font-family: verdana;
                font-size: 12px;
                font-weight: bold;
                color:#4F4F4F;
            }
    </style>
    <p:growl id="growlCommentPost" showDetail="true" life="3000" />
    <p:dialog header="Portal Cidadao - Comentario" styleClass="rotulos" widgetVar="commentDialog"  id="commentDlg"  
              showEffect="fade" hideEffect="explode" modal="true" resizable="false" height="300" draggable="false" >  
            <h:panelGrid id="displayPost" columns="2" cellpadding="4" style="margin:0 auto;">
                <h:outputLabel for="name" value="Comentário:" style="font-weight:bold"/>
                <p:inputTextarea rows="5" cols="30" value="#{commentBean.comentario}" id="ComentarioPost"/>
                <p:commandButton action="#{commentBean.create}" value="Comentar" style="float: right;"  ajax="false" update=":growl,dataTable" >
                    <f:setPropertyActionListener target="#{commentBean.codPost}" value="#{commentBean.marker.shadow}" />
                </p:commandButton>
                  
                <h:outputText  id="display" />
            </h:panelGrid>
    </p:dialog>
</html>
